package phapp.model.qfd;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;

/**
 * Title: t_custqfd_data 数据类 POJO Description: DAO层映射到数据类,页面封装数据映射到数据类
 * Copyright: Copyright (c) 2012-10 Company:
 * 
 * @author you name
 * @version 1.0
 */

public class Custqfd extends BaseEntity
{

   // date formats
   public static final String FORMAT_STOP_TIME = DATE_TIME_FORMAT;
   public static final String FORMAT_CREATE_DATE = DATE_TIME_FORMAT;
   public static final String FORMAT_UPDATE_DATE = DATE_TIME_FORMAT;

   // columns START
   /** custqfdId */
   private java.lang.Integer custqfdId;
   /** custId */
   private java.lang.Integer custId;
   /** qfdId */
   private java.lang.Integer qfdId;
   /** overtFlag */
   private java.lang.Integer overtFlag;
   /** receiverId */
   private java.lang.Integer receiverId;
   /** qfdText */
   private java.lang.String qfdText;
   /** qfdCoordinateX */
   private java.lang.String qfdCoordinateX;
   /** qfdCoordinateY */
   private java.lang.String qfdCoordinateY;
   /** stopTime */
   private java.sql.Timestamp stopTime;
   /** createDate */
   private java.sql.Timestamp createDate;
   /** updateDate */
   private java.sql.Timestamp updateDate;

   private java.util.ArrayList idList;
   
   private java.lang.Integer qfdPrice;
   private java.lang.Integer praiseCount;
   private java.lang.String custImgurl;
   private java.lang.String qfdImgUrl;
   private java.lang.String useTime;
   private java.lang.String leftTime;
   private java.lang.String custName;
   private java.lang.String receiverName;

   // columns END

   public Custqfd()
   {
   }

   public java.lang.Integer getQfdPrice()
   {
      return qfdPrice;
   }

   public void setQfdPrice(java.lang.Integer qfdPrice)
   {
      this.qfdPrice = qfdPrice;
   }

   public java.lang.String getCustImgurl()
   {
      return custImgurl;
   }

   public void setCustImgurl(java.lang.String custImgurl)
   {
      this.custImgurl = custImgurl;
   }

   public java.lang.Integer getPraiseCount()
   {
      return praiseCount;
   }

   public void setPraiseCount(java.lang.Integer praiseCount)
   {
      this.praiseCount = praiseCount;
   }

   public java.lang.String getCustName()
   {
      return custName;
   }

   public void setCustName(java.lang.String custName)
   {
      this.custName = custName;
   }

   public java.lang.String getReceiverName()
   {
      return receiverName;
   }

   public void setReceiverName(java.lang.String receiverName)
   {
      this.receiverName = receiverName;
   }

   public java.lang.String getUseTime()
   {
      return useTime;
   }

   public void setUseTime(java.lang.String useTime)
   {
      this.useTime = useTime;
   }

   public java.lang.String getLeftTime()
   {
      return leftTime;
   }

   public void setLeftTime(java.lang.String leftTime)
   {
      this.leftTime = leftTime;
   }

   public java.lang.String getQfdImgUrl()
   {
      return qfdImgUrl;
   }

   public void setQfdImgUrl(java.lang.String qfdImgUrl)
   {
      this.qfdImgUrl = qfdImgUrl;
   }

   public Custqfd(java.lang.Integer custqfdId)
   {
      this.custqfdId = custqfdId;
   }

   public void setId(java.lang.Integer value)
   {
      this.custqfdId = value;
   }

   public java.lang.Integer getId()
   {
      return this.custqfdId;
   }
   
   public void setCustqfdId(java.lang.Integer value)
   {
      this.custqfdId = value;
   }

   public java.lang.Integer getCustqfdId()
   {
      return this.custqfdId;
   }

   public void setCustId(java.lang.Integer value)
   {
      this.custId = value;
   }

   public java.lang.Integer getCustId()
   {
      return this.custId;
   }

   public void setQfdId(java.lang.Integer value)
   {
      this.qfdId = value;
   }

   public java.lang.Integer getQfdId()
   {
      return this.qfdId;
   }

   public void setOvertFlag(java.lang.Integer value)
   {
      this.overtFlag = value;
   }

   public java.lang.Integer getOvertFlag()
   {
      return this.overtFlag;
   }

   public void setReceiverId(java.lang.Integer value)
   {
      this.receiverId = value;
   }

   public java.lang.Integer getReceiverId()
   {
      return this.receiverId;
   }

   public void setQfdText(java.lang.String value)
   {
      this.qfdText = value;
   }

   public java.lang.String getQfdText()
   {
      return this.qfdText;
   }

   public void setQfdCoordinateX(java.lang.String value)
   {
      this.qfdCoordinateX = value;
   }

   public java.lang.String getQfdCoordinateX()
   {
      return this.qfdCoordinateX;
   }

   public void setQfdCoordinateY(java.lang.String value)
   {
      this.qfdCoordinateY = value;
   }

   public java.lang.String getQfdCoordinateY()
   {
      return this.qfdCoordinateY;
   }

   public String getStopTimeString()
   {
      return date2String(getStopTime(), FORMAT_STOP_TIME);
   }

   public void setStopTimeString(String value)
   {
      setStopTime(string2Date(value, FORMAT_STOP_TIME, java.sql.Timestamp.class));
   }

   public void setStopTime(java.sql.Timestamp value)
   {
      this.stopTime = value;
   }

   public java.sql.Timestamp getStopTime()
   {
      return this.stopTime;
   }

   public String getCreateDateString()
   {
      return date2String(getCreateDate(), FORMAT_CREATE_DATE);
   }

   public void setCreateDateString(String value)
   {
      setCreateDate(string2Date(value, FORMAT_CREATE_DATE, java.sql.Timestamp.class));
   }

   public void setCreateDate(java.sql.Timestamp value)
   {
      this.createDate = value;
   }

   public java.sql.Timestamp getCreateDate()
   {
      return this.createDate;
   }

   public String getUpdateDateString()
   {
      return date2String(getUpdateDate(), FORMAT_UPDATE_DATE);
   }

   public void setUpdateDateString(String value)
   {
      setUpdateDate(string2Date(value, FORMAT_UPDATE_DATE, java.sql.Timestamp.class));
   }

   public void setUpdateDate(java.sql.Timestamp value)
   {
      this.updateDate = value;
   }

   public java.sql.Timestamp getUpdateDate()
   {
      return this.updateDate;
   }

   public java.util.ArrayList getIdList()
   {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList)
   {
      this.idList = idList;
   }

   /** 手动增加属性后,toString,hashCode,equals都要修改 */
   public String toString()
   {
      return new ToStringBuilder(this).append("CustqfdId", getCustqfdId()).append("CustId", getCustId())
               .append("QfdId", getQfdId()).append("OvertFlag", getOvertFlag()).append("ReceiverId", getReceiverId())
               .append("QfdText", getQfdText()).append("QfdCoordinateX", getQfdCoordinateX())
               .append("QfdCoordinateY", getQfdCoordinateY()).append("StopTime", getStopTime())
               .append("CreateDate", getCreateDate()).append("UpdateDate", getUpdateDate()).toString();
   }

   public int hashCode()
   {
      return new HashCodeBuilder().append(getCustqfdId()).append(getCustId()).append(getQfdId()).append(getOvertFlag())
               .append(getReceiverId()).append(getQfdText()).append(getQfdCoordinateX()).append(getQfdCoordinateY())
               .append(getStopTime()).append(getCreateDate()).append(getUpdateDate()).toHashCode();
   }

   public boolean equals(Object obj)
   {
      if(obj instanceof Custqfd == false) return false;
      if(this == obj) return true;
      Custqfd other = (Custqfd) obj;
      return new EqualsBuilder().append(getCustqfdId(), other.getCustqfdId()).append(getCustId(), other.getCustId())
               .append(getQfdId(), other.getQfdId()).append(getOvertFlag(), other.getOvertFlag())
               .append(getReceiverId(), other.getReceiverId()).append(getQfdText(), other.getQfdText())
               .append(getQfdCoordinateX(), other.getQfdCoordinateX()).append(getQfdCoordinateY(), other.getQfdCoordinateY())
               .append(getStopTime(), other.getStopTime()).append(getCreateDate(), other.getCreateDate())
               .append(getUpdateDate(), other.getUpdateDate()).isEquals();
   }
}
